// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// 引入vuex
import store from './store'
// 清除样式
import './css/reset.css'
import './css/global.css'
import '@/styles/index.scss' // global css
import './permission' // permission control

import filters from './utils/filter'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import req from "./utils/req";
import APlayer from '@moefe/vue-aplayer';
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
Vue.config.productionTip = false
Vue.prototype.$req=req
Vue.use(ElementUI)
Vue.use(APlayer);
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
